package com.lsfb.signsys.editpwd;

import com.lsfb.signsys.HttpUtils;

import java.util.HashMap;
import java.util.Map;

import io.reactivex.Observable;

/**
 * Created by zgscwjm on 2018/4/11.
 */

public class EditPwdRepository {

    private EditPwdDataSource mEditPwdDataSource;

    public EditPwdRepository() {

        mEditPwdDataSource  = HttpUtils.getService(EditPwdDataSource.class);
    }

    public Observable<EditPwdBean> eidtPwd(EditPwdTO editPwdTO){
        Map<String,String> map = new HashMap<>();
        map.put("oldpwd",editPwdTO.getOldpwd());
        map.put("currentpwd",editPwdTO.getCurrentpwd());
        return HttpUtils.result(mEditPwdDataSource.editPwd(map));
    }
}
